﻿using System.Collections.Generic;
using System.Web.Mvc;
using WeBlog.Models;

namespace WeBlog.Controllers
{
    public class HomeController : Controller
    {
        public ActionResult Index()
        {
            ViewBag.Message = "WeBlog";

            IEnumerable<BlogPost> blogPosts = BlogRepository.Instance.GetBlogPosts();

            return View(blogPosts);
        }

        public ActionResult About()
        {
            ViewBag.Message = "WeBlog description";

            return View();
        }

        public ActionResult Contact()
        {
            ViewBag.Message = "WeBlog Contact";

            return View();
        }
    }
}